
Replication files for: 

"Do Natural Resources Attract Nonresource FDI?"
Steven Poelhekke and Frederick van der Ploeg
Review of Economics and Statistics 2013 95:3, 1047-1065 


[A]

/replicate.do
Stata do-file which replicates all the tables in the paper, using the programs below. 

/data.dta
Stata 12.1 data file.

/output.smcl
Output log file from executing /replicate.do. 

/regression program.do
Program to run the spatial regressions.

/weight matrix calculation rowst.do
Program used to calculate weight matrices.

/simulation.do
Program used to make figures 2 and 3.

/spatreg2.ado
Estimates the spatial regressions.


/matlab programs/sarp_g.m
Program used by Matlab to estimate the spatial probit regression.


/matlab programs/spatialprobit.m
Program to be run in Matlab to estimate the spatial probit regression.


/matlab programs/yhatar.txt
Output from spatialprobit.m used by Stata in the second stage regression.



[B]
Contains data from \REStat replication\data.dta
  obs:         4,416                          
 vars:            49                          5 Aug 2013 10:22
 size:     1,258,560                          
-------------------------------------------------------------------------------------------------------------------------------
              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------------------------------------------------------
country         str30  %30s                   
year            int    %9.0g                  
idcode          int    %8.0g                  
region          str29  %29s                   
wbcode          str3   %9s                    
landlock        byte   %8.0g                  Landlocked dummy
pwt_p           float  %9.0g                  Real exchange rate, PWT
govshare        float  %9.0g                  Implicit tax rate (Government share of GDP*100)
openness        byte   %9.0g                  S&W openness
bauxite         double %9.0g                  
copper          double %9.0g                  
lead            double %9.0g                  
nickel          double %9.0g                  
phosphate       double %9.0g                  
tin             double %9.0g                  
zinc            double %9.0g                  
gold            double %9.0g                  
silver          double %9.0g                  
ironore         double %9.0g                  
hardcoal        double %9.0g                  
browncoal       double %9.0g                  
oil             double %9.0g                  
naturalgas      double %9.0g                  
forest          double %9.0g                  
longitude       float  %9.0g                  Lon. of country's centroid, CID
latitude        float  %9.0g                  Lat. of country's centroid, CID
ln_poptot       float  %9.0g                  ln population
lnhumanav       float  %9.0g                  ln human capital
gdp             float  %9.0g                  GDP in billions
trend           byte   %9.0g                  
ln_dist         float  %9.0g                  ln distance from NLD
lngdp_smp       float  %9.0g                  ln GDP surrounding market potential
oilres          float  %9.0g                  
gasres          float  %9.0g                  
coalres         byte   %9.0g                  
oilprod         float  %9.0g                  
gasprod         float  %9.0g                  
coalprod        float  %9.0g                  
oilprice_u~2008 float  %9.0g                  Oil Price (constant 2008 USD)
t               int    %9.0g                  Year
gattwtodum      byte   %9.0g                  GATT/WTO member
instm5i         float  %9.0g                  Institutions 5-yearly
llngdppc        float  %9.0g                  ln GDP per capita (t-1)
fdires          float  %9.0g                  
lnfdires        float  %9.0g                  log Natural Resource FDI
fdinores        float  %9.0g                  
lnfdinores      float  %9.0g                  log Non-Natural Resource FDI
llnfdires       float  %9.0g                  dep. var. (t-1)
llnfdinores     float  %9.0g                  dep. var. (t-1)
-------------------------------------------------------------------------------------------------------------------------------
Sorted by:  idcode  year




[C]
Output log file was generated with Stata 12.1



